#include "vr.h"
#include "vr_dragonball.h"

namespace igslib
{
	IVRManager* CVRManager::instance = 0;
	IVRManager* CVRManager::GetInstance() 
	{
		if ( instance == 0 )
		{
			instance = new CVRManager();
		}
		return instance ;
	}
    IVR* CVRManager::NewM01VR()
    {
        IVR* rtn = nullptr;
        rtn = new CVR();
        cpns.insert(rtn);
        return rtn;
    }
	
	IVR* CVRManager::New_ProjMCU(const std::string& name)
	{
		IVR* rtn = nullptr;
		
		if(name =="DragonBallRace")
		{
			rtn = new vr_Grgn();
        }
        return rtn;
	}
	
	
	
}

extern "C"{
	igslib::IVRManager* GetVRManagerInstance()
	{
		return igslib::CVRManager::GetInstance();
	}
}
